﻿@model BrnMall.Web.StoreAdmin.Models.WorkWechatModel

@section header{
    <title>企业微信授权-微街客</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
}


@section body{
    <h1 class="rightH1">
        微信小程序 &gt; 微街客 &gt; <span class="rightH1-cur">企业微信授权</span>
        <div class="right">
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>

    @using (Html.BeginForm("WorkWechat", "Staff"))
    {

        <div class="addTable">
            <table width="100%">
                <tr>
                    <td width="80px" align="right">授权方：</td>
                    <td>@Model.CompanyName</td>
                </tr>
                <tr>
                    <td align="right">AI销售：</td>
                    <td>
                        @if (Model.AiState == 1)
                        {
                            <span>已授权</span>
                        }
                        else
                        {
                            <span>未授权</span> <a href="../../WorkWechat/install?storeid=@WorkContext.StoreId&name=ai" target="_blank"><button class="button" style="margin-left:50px;">点击授权</button></a>
                        }
                    </td>
                </tr>
                <tr>
                    <td align="right">boss销售：</td>
                    <td>
                        @if (Model.BossState == 1)
                        {
                            <span>已授权</span>
                        }
                        else
                        {
                            <span>未授权</span> <a href="../../WorkWechat/install?storeid=@WorkContext.StoreId&name=boss" target="_blank"><input type="button"  class="button" style="margin-left:50px;" value="点击授权" /></a>
                        }
                    </td>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <td></td>
                </tr>

            </table>
        </div>

    }
}